package bb.lanxing.device.sgdevcie.storage.fragment;

import androidx.navigation.fragment.FragmentKt;
import bb.lanxing.R;
import bb.lanxing.databinding.FragmentDeviceStorageManagerBinding;
import bb.lanxing.device.sgdevcie.viewmodel.DeviceViewModel;
import bb.lanxing.mvvm.base.BaseDBFragment;

public final class XossSGDeviceStorageManagerFragment extends BaseDBFragment<FragmentDeviceStorageManagerBinding> {
	public XossSGDeviceStorageManagerFragment() {
		super(R.layout.fragment_device_storage_manager);
		XossSGDeviceStorageManagerFragment xossSGDeviceStorageManagerFragment = this;
		//TODO:hu
		//        this.xossSGDeviceViewModel$delegate = FragmentViewModelLazyKt.createViewModelLazy(xossSGDeviceStorageManagerFragment, Reflection.getOrCreateKotlinClass(XossSGDeviceViewModel.class), new VMStoreKt$viewModelWithScope$2(xossSGDeviceStorageManagerFragment, "SCOPE_STORAGE_MANAGE"), new VMStoreKt$viewModelWithScope$3(xossSGDeviceStorageManagerFragment), null);
	}

	public final DeviceViewModel getXossSGDeviceViewModel() {
		//        return (XossSGDeviceViewModel) this.xossSGDeviceViewModel$delegate.getValue();
		return null;
	}

	@Override public void initView(FragmentDeviceStorageManagerBinding binding) {
		//TODO:hu
		//        binding.setDeviceName(getXossSGDeviceViewModel().getDeviceName());
		//        LifecycleOwnerKt.getLifecycleScope(this).launchWhenResumed(new XossSGDeviceStorageManagerFragment$initView$1(this, binding, null));
		//        getXossSGDeviceViewModel().getDeviceMemoryUsage();
		binding.llRouteBook.setOnClickListener(view -> FragmentKt.findNavController(XossSGDeviceStorageManagerFragment.this).navigate(R.id.action_xossSGDeviceStorageManagerFragment_to_xossSGDeviceRouteBookManagerFragment));
		binding.llWorkout.setOnClickListener(view -> FragmentKt.findNavController(XossSGDeviceStorageManagerFragment.this).navigate(R.id.action_xossSGDeviceStorageManagerFragment_to_xossSGDeviceWorkoutsManagerFragment));
	}

	@Override public void onResume() {
		super.onResume();
		sendMessage(R.id.msg_change_title, getString(R.string.st_storage));
	}
}
